<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html>
<head>
<meta charset="utf-8">
<title><?php echo ($title); ?></title>
</head>
    <script>
        var APP = "";//当前应用（入口文件）地址
        var IMG = "/Public/Home/Default/IMG";
        var STATIC = "/Public/Static";
        var THEME = "/Public/Home/Default";
    </script>
        <link rel="stylesheet" type="text/css" href="/Public/Static/bootstrap/css/bootstrap.min.css" />
        <link rel="stylesheet" type="text/css" href="/Public/Static/font-awesome/css/font-awesome.min.css" />
        <link rel="stylesheet" type="text/css" href="/Public/Home/Default/CSS/common.css">
        <link rel="stylesheet" type="text/css" href="/Public/Static/CSS/kkpager_blue.css" />
</head>
<body>

<div class="header">
  <h1 class="hidden">行必达管理系统</h1>
  <a href="#" class="logo">心所思 行必达</a>
  <div class="nav_right">
    <ul >
      <li><i class="fa fa-home fa-2x icon_head_color"></i></li>
      <li><img class="sdd_personal" src="/Public/Home/Default/IMG/head_img.png"><a><span class="user_name">叨叨机器人</span></a></li>
      <li><i class="fa fa-envelope-square fa-2x maginl10"></i></li>
      <li> <i class="fa fa-sign-out fa-2x maginl10"></i></li>
    </ul>
  </div>
</div>
 <script type="text/javascript" src="/Public/Home/Default/JS/jquery-1.11.1.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
	// alert("");
	$('.inactive').click(function(){
		if($(this).siblings('ul').css('display')=='none'){
			$(this).parent('li').siblings('li').removeClass('inactives');
			$(this).addClass('inactives');
			$(this).siblings('ul').slideDown(100).children('li');
			if($(this).parents('li').siblings('li').children('ul').css('display')=='block'){
				$(this).parents('li').siblings('li').children('ul').parent('li').children('a').removeClass('inactives');
				$(this).parents('li').siblings('li').children('ul').slideUp(100);

			}
		}else{
			//控制自身变成+号  
			$(this).removeClass('inactives');
			//控制自身菜单下子菜单隐藏
			$(this).siblings('ul').slideUp(100);
			//控制自身子菜单变成+号
			$(this).siblings('ul').children('li').children('ul').parent('li').children('a').addClass('inactives');
			//控制自身菜单下子菜单隐藏
			$(this).siblings('ul').children('li').children('ul').slideUp(100);

			//控制同级菜单只保持一个是展开的（-号显示）
			$(this).siblings('ul').children('li').children('a').removeClass('inactives');
		}
	})
});
</script>

<div class="list clearfix" >
	<ul class="yiji" >
		<?php if(explode('/',$_SERVER['PATH_INFO'])[0] == 'Employee' ): ?><li><a href="<?php echo U('Employee/index');?>" class="inactive inactives"><i class="fa fa-users"></i>&nbsp;&nbsp;人力资源<i class="fa fa-angle-right mgleft"></i></a>
				<ul style="display: block;">
		<?php else: ?> 
			<li><a href="<?php echo U('Employee/index');?>" class="inactive"><i class="fa fa-users"></i>&nbsp;&nbsp;人力资源<i class="fa fa-angle-right mgleft"></i></a>
			<ul style="display: none"><?php endif; ?>

				<li><a href="<?php echo U('Employee/addEmployee');?>" class="inactive active">新增员工</a></li> 
				<li><a href="#">编辑员工</a></li> 
			</ul>
		</li>

		<?php if(explode('/',$_SERVER['PATH_INFO'])[0] == 'Section' ): ?><li><a href="<?php echo U('Section/index');?>" class="inactive inactives"><i class="fa fa-sitemap"></i>&nbsp;&nbsp;部门管理<i class="fa fa-angle-right mgleft"></i></a>
				<ul style="display: block;">
		<?php else: ?> 
			<li><a href="<?php echo U('Section/index');?>" class="inactive"><i class="fa fa-sitemap"></i>&nbsp;&nbsp;部门管理<i class="fa fa-angle-right mgleft"></i></a>
				<ul style="display: none"><?php endif; ?>
		
				<li><a href="<?php echo U('Section/addSection');?>" class="inactive active">新增部门</a></li> 
				<li><a href="#">编辑部门</a></li> 
			</ul>
		</li>


		<?php if(explode('/',$_SERVER['PATH_INFO'])[0] == 'Node' ): ?><li><a href="<?php echo U('Node/index');?>" class="inactive inactives"><i class="fa fa-map"></i>&nbsp;&nbsp;网点管理<i class="fa fa-angle-right mgleft"></i></a>
				<ul style="display: block;">
		<?php else: ?> 
			<li><a href="<?php echo U('Node/index');?>" class="inactive"><i class="fa fa-map"></i>&nbsp;&nbsp;网点管理<i class="fa fa-angle-right mgleft"></i></a>
				<ul style="display: none"><?php endif; ?>

				<li><a href="<?php echo U('Node/addNode');?>" class="inactive active">新增网点</a></li> 
				<li><a href="#">编辑网点</a></li> 
			</ul>
		</li>


		<?php if(explode('/',$_SERVER['PATH_INFO'])[0] == 'Trade' ): ?><li><a href="<?php echo U('Trade/index');?>" class="inactive inactives"><i class="fa fa-gears"></i>&nbsp;&nbsp;商户管理<i class="fa fa-angle-right mgleft"></i></a>
				<ul style="display: block;">
		<?php else: ?> 
			<li><a href="<?php echo U('Trade/index');?>" class="inactive"><i class="fa fa-gears"></i>&nbsp;&nbsp;商户管理<i class="fa fa-angle-right mgleft"></i></a>
				<ul style="display: none"><?php endif; ?>
				<li><a href="<?php echo U('Trade/addTrade');?>" class="inactive active">新增商户</a></li> 
				<li><a href="<?php echo U('Trade/priceFixing');?>">价格配置</a></li> 
				<li><a href="<?php echo U('Trade/preinstallTrade');?>">预设仓库</a></li> 
				<li><a href="<?php echo U('Trade/generateContract');?>">生成合同</a></li> 
				<li><a href="#">合同预览</a></li> 
			</ul>
		</li>

		<?php if(explode('/',$_SERVER['PATH_INFO'])[0] == 'Freight' ): ?><li><a href="<?php echo U('Freight/index');?>" class="inactive inactives"><i class="fa fa-scribd"></i>&nbsp;&nbsp;基础运价<i class="fa fa-angle-right mgleft"></i></a>
				<ul style="display: block;">
		<?php else: ?> 
			<li><a href="<?php echo U('Freight/index');?>" class="inactive"><i class="fa fa-scribd"></i>&nbsp;&nbsp;基础运价<i class="fa fa-angle-right mgleft"></i></a>
				<ul style="display: none"><?php endif; ?>
				<li><a href="<?php echo U('Freight/hike');?>" class="inactive active">续价设置</a></li> 
				<li><a href="<?php echo U('Freight/increaseValue');?>">增值服务</a></li> 
			</ul>
		</li>

		<?php if(explode('/',$_SERVER['PATH_INFO'])[0] == 'Deploy' ): ?><li><a href="<?php echo U('Deploy/index');?>" class="inactive inactives"><i class="fa fa-external-link-square"></i>&nbsp;&nbsp;基础配置<i class="fa fa-angle-right mgleft"></i></a>
				<ul style="display: block;">
		<?php else: ?> 
			<li><a href="<?php echo U('Deploy/index');?>" class="inactive"><i class="fa fa-external-link-square"></i>&nbsp;&nbsp;基础配置<i class="fa fa-angle-right mgleft"></i></a>
				<ul style="display: none"><?php endif; ?>
				<li><a href="<?php echo U('Deploy/addDeploy');?>" class="inactive active">新增基础配置</a></li> 
			</ul>
		</li>
 
	</ul>
</div>



<style>
 
</style>
<div class="sdd_content clearfix">
    <div class="search-criteria">
      <select class="form-control" style="width: 200px;float:left;" >
        <option>所属网店</option>
        <option>总公司</option>
        <option>城西站点</option>
      </select>
    
      <select class="form-control marginl6" style="width: 200px;float:left;">
        <option>帐号状态</option>
        <option>在职</option>
        <option>离职</option>
        <option>禁用</option>
      </select>
    
      <select class="form-control marginl6" style="width: 200px;float:left;">
        <option>角色</option>
        <option>管理员</option>
        <option>客服专员</option>
        <option>配送员</option>
        <option>司机</option>
      </select>
    </div>

    <div>
      <input type="text" class="form-control marginl6" id="inputText" placeholder="输入姓名/手机号/员工编号" style="width: 200px;float:left;">
    </div>
    <div class="btn-function">
      <button type="submit" class="btn btn-default marginl6">清除</button>
      <button type="submit" class="btn btn-default marginl6">搜索</button>
    </div>
    <div class="employeeList">
          <ul class="employeeList_title">
              <li style='width:9%;'>员工编号</li>
              <li style='width:9%;'>姓名</li>
              <li style='width:9%;'>手机号</li>
              <li style='width:9%;'>所属网点</li>
              <li style='width:9%;'>部门</li>
              <li style='width:9%;'>职务</li>
              <li style='width:9%;'>职级</li>
              <li style='width:9%;'>角色</li>
              <li style='width:9%;'>入职时间</li>
              <li style='width:9%;'>账户状态</li>
              <li style='width:10%;'>操作</li>
          </ul>
          <div class='listinfo'>
              <ul>
                  <li style='width:9%;'>036</li>
                  <li style='width:9%;'>叨叨</li>
                  <li style='width:9%;'>1325843245</li>
                  <li style='width:9%;'>城西站</li>
                  <li style='width:9%;'>物流</li>
                  <li style='width:9%;'>快递员</li>
                  <li style='width:9%;'>P2</li>
                  <li style='width:9%;'>快递员</li>
                  <li style='width:9%;'>2016-3-11</li>
                  <li class="cgreen" style='width:9%;'>已激活</li>
                  <li style='width:10%;'><a class="cblue">修改</a><a class="cred">删除</a></li>
              </ul>
          </div>
          <div class="page"></div>
      </div>
      <div style="width:800px;margin:0 auto;">
          <div id="kkpager"></div>
      </div>
</div>
<script type="text/javascript">
function getParameter(name) { 
  var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)"); 
  var r = window.location.search.substr(1).match(reg); 
  if (r!=null) return unescape(r[2]); return null;
}

//init
$(function(){
  var totalPage = 20;
  var totalRecords = 390;
  var pageNo = getParameter('pno');
  if(!pageNo){
    pageNo = 1;
  }
  //生成分页
  //有些参数是可选的，比如lang，若不传有默认值
  kkpager.generPageHtml({
    pno : pageNo,
    //总页码
    total : totalPage,
    //总数据条数
    totalRecords : totalRecords,
    //链接前部
    hrefFormer : 'index',
    //链接尾部
    hrefLatter : '.html',
    getLink : function(n){
      return this.hrefFormer + this.hrefLatter + "?pno="+n;
    }
  });
});
</script>
<script type="text/javascript" src="/Public/Static/JS/public.js"></script>
<script type="text/javascript" src="/Public/Static/JS/jquery.circliful.js"></script>
<script type="text/javascript" src="/Public/Static/JS/kkpager.js"></script>
<script type="text/javascript" src="/Public/Home/Default/JS/fun.js"></script> 
</body></html>